package com.ruiysoft.service.mdse.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruiysoft.entity.mdse.MerchandiseRuleValue;
import com.ruiysoft.mapper.mdse.MerchandiseRuleValueMapper;
import com.ruiysoft.pub.consts.EnumUtil;
import com.ruiysoft.service.mdse.IMerchandiseRuleValueService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品spu规则值表 服务实现类
 * </p>
 *
 * @author liyahui
 * @since 2018-10-27
 */
@Service
public class MerchandiseRuleValueServiceImpl extends ServiceImpl<MerchandiseRuleValueMapper, MerchandiseRuleValue> implements IMerchandiseRuleValueService {

    @Override
    public List<MerchandiseRuleValue> findListBySpuId(Long spuId) {
        List list =list(new QueryWrapper<MerchandiseRuleValue>().eq("spu_id",spuId).eq("is_use",EnumUtil.DelFlag.NO));
        return list;
    }
}
